package com.zgyd.domin.query;

import lombok.Data;
import org.springframework.ai.tool.annotation.ToolParam;

import java.util.List;

@Data
public class CourseQuery {
    @ToolParam(required = false, description = "套餐名称：经济卡、畅享全家享、全球通尊享、学生青春卡")
    private String package_name;
    @ToolParam(required = false, description = "流量：10GB、50GB、不限量、30GB")
    private String traffic;
    @ToolParam(required = false, description = "月租：199.00、99.00、59.00、39.00")
    private String monthly_rent;
    @ToolParam(required = false, description = "排序方式")
    private List<Sort> sorts;

    @Data
    public static class Sort {
        @ToolParam(required = false, description = "排序字段: traffic或monthly_rent")
        private String field;
        @ToolParam(required = false, description = "是否是升序: true/false")
        private Boolean asc;
    }
}